/* 认证页面专用样式 */

/* 浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 渐变动画 */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 脉冲发光效果 */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
  }
}

/* 认证页面专用类 */
.auth-float {
  animation: float 6s ease-in-out infinite;
}

.auth-gradient-bg {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

.auth-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* 表单输入焦点效果 */
.auth-input:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 按钮悬停效果 */
.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 卡片悬停效果 */
.auth-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* 输入框聚焦时图标颜色变化 */
.auth-input-group:focus-within .auth-icon {
  color: #3b82f6;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

/* 按钮点击反馈 */
.auth-button:active {
  transform: translateY(0) scale(0.98);
}

/* 平滑的边框动画 */
.auth-border-animate {
  position: relative;
  overflow: hidden;
}

.auth-border-animate::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-border-animate:focus-within::before {
  opacity: 1;
}

/* 背景粒子效果 */
.auth-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.auth-particles::before,
.auth-particles::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  animation: float 8s linear infinite;
}

.auth-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: -2s;
}

.auth-particles::after {
  top: 60%;
  right: 20%;
  animation-delay: -4s;
}
